package com.example.springbootdemo.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 *  性别枚举类
 * </p>
 *
 * @author yurenwei
 * @since 2023/9/7
 */
@Getter
@AllArgsConstructor
public enum GenderEnum {

    FEMALE(0,"女"),
    MALE(1, "男");

    /**
     * 编码
     */
    @EnumValue
    @JsonValue
    private Integer code;

    /**
     * 名称
     */
    private String value;
}
